package com.jyw.business.ins.task;

import com.jyw.business.ins.service.IInsTaskJobService;
import com.jyw.common.utils.spring.SpringUtils;
import org.springframework.stereotype.Component;

/**
 * @author Created by ZhangCheng on 2023/10/10 （巡检计划生成巡检任务定时任务）
 */
@Component("InspectionPlanTask")
public class InspectionPlanTask {

    /**
     * 生成巡检任务
     */
    public void createInsTask() {
        System.out.println("运行巡检定时任务");
        IInsTaskJobService insTaskJobService = SpringUtils.getBean(IInsTaskJobService.class);
        insTaskJobService.createInsTask();
    }
}
